﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace zichan.Models
{
    public class ListIpModel
    {
        [Required(ErrorMessage = "IP不能为空")]
        //[RegularExpression(@"(((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))[\S|\r\n])+((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))", ErrorMessage = "请输入正确格式的IP地址")]
        public string nameList { get; set; }
        [Required(ErrorMessage = "机房不能为空")]
        public int MachineRoomId { get; set; }
    }
}